package com.northwind.service;

import com.northwind.entity.Category;
import com.northwind.entity.User;
import org.springframework.web.multipart.MultipartFile;

import java.util.HashMap;

public interface CategoryService {
    /** 查所有 */
    HashMap<String, Object> queryAllPage (Integer page,Integer rows);
    /** 添加 */
    void add(Category category);
    /** 删除*/
    void delete(Category category);
    /** 修改 */
    void update(Category category);

    /** 查询二级类别 */
    HashMap<String, Object> queryByTwoCategory (Integer page,Integer rows,String parentId);
}
